package com.yky.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 伦理委员会
 * 
 * @author vimesly
 * 
 */

@SuppressWarnings("serial")
@Entity
@Table(name = "work_project_ethic_version")
public class ProjectEthicVersion implements Serializable {

	private Integer id;

	private String name; // 伦理委员会名称
	private String isRecords; // 是否已在省(市)级卫生计生行政部门备案
	private String provinceCode;
	private String auditDate; // 伦理审查日期
	private String approvalNumber; // 批准文号
	private String telephone; // 联系电话
	private String email; // 邮箱
	private String approvalFilePath; // 批准附件(pdf)文件

	private Project project; // 所属项目
	private ProjectVersion projectVersion; // 所属项目版本表

	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "name")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "is_records")
	public String getIsRecords() {
		return isRecords;
	}

	public void setIsRecords(String isRecords) {
		this.isRecords = isRecords;
	}

	@Column(name = "province_code")
	public String getProvinceCode() {
		return provinceCode;
	}

	public void setProvinceCode(String provinceCode) {
		this.provinceCode = provinceCode;
	}

	@Column(name = "audit_date")
	public String getAuditDate() {
		return auditDate;
	}

	public void setAuditDate(String auditDate) {
		this.auditDate = auditDate;
	}

	@Column(name = "approval_number")
	public String getApprovalNumber() {
		return approvalNumber;
	}

	public void setApprovalNumber(String approvalNumber) {
		this.approvalNumber = approvalNumber;
	}

	@Column(name = "telephone")
	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	@Column(name = "email")
	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name = "approval_file_path")
	public String getApprovalFilePath() {
		return approvalFilePath;
	}

	public void setApprovalFilePath(String approvalFilePath) {
		this.approvalFilePath = approvalFilePath;
	}

	@ManyToOne
	@JoinColumn(name = "project_id")
	public Project getProject() {
		return project;
	}

	public void setProject(Project project) {
		this.project = project;
	}

	@ManyToOne
	@JoinColumn(name = "project_version_id")
	public ProjectVersion getProjectVersion() {
		return projectVersion;
	}

	public void setProjectVersion(ProjectVersion projectVersion) {
		this.projectVersion = projectVersion;
	}
	

}
